package com.favccxx.search.domain.auditlog;

import com.favccxx.search.domain.common.BaseDoc;
import lombok.*;
import org.springframework.data.annotation.*;
import org.springframework.data.mongodb.core.mapping.Document;

import javax.persistence.Column;
import java.time.LocalDateTime;

/**
 * @author favccxx
 * @date 5/13/2020 4:16 PM
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "us_audit_log")
public class AuditLog {

    @Id
    private String id;

    private String method;

    private String path;

    private Integer status;

    private String username;

    @CreatedDate
    @Column(updatable = false)
    private LocalDateTime createTime;

    @LastModifiedDate
    private LocalDateTime updateTime;

}
